package com.shopping.user;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;

import com.shopping.util.DB;

public class UserManager {
	public void deleteUser(int id) {
		Connection conn = null;
		Statement stat = null;
		String sql = "delete from ruser where id = " + id;
		
		try {
			conn = DB.getConn();
			stat = DB.getStat(conn);
			stat.executeUpdate(sql);
		} catch (SQLException e) {
			e.printStackTrace();
		} finally {
			DB.closeStat(stat);
			DB.closeConn(conn);
		}
		
	}
	
	
}
